<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<input type="button" value="Click Me" onclick="doClick()">
<table id="tab1"></table>
</body>
<script>
	var tbl = document.getElementById("tab1"); 
	tb1.style.left = 100;
	tb1.style.top = 100;
	tb1.style.width = 100;
	tb1.style.height = 100;
	var row1 = tbl.insertRow(-1);
	
	function doClick(){
		var c1= row1.insertCell(-1);
		c1.style.width= "400px";
		c1.innerHTML= "c211111";
		var c2= row1.insertCell(-1);
		c2.style.width= "100px";
		c2.innerHTML= "c222222";
		alert('finish');
	}
</script>
</html>